package com.xdjd.mobile.business.entity.result;


import com.gitee.easyopen.doc.DataType;
import com.gitee.easyopen.doc.annotation.ApiDocField;

import java.util.ArrayList;
import java.util.List;

/**
 * 分页基础返回参数
 * 
 * @param <T>
 */

public class BasePageResult<T> extends BaseResult {

	//1111

	@ApiDocField(description = "页数", dataType = DataType.INT)
	private int pageNo = 1;
	@ApiDocField(description = "最大页数", dataType = DataType.INT)
	private int pageMax;
	@ApiDocField(description = "数据总数", dataType = DataType.LONG)
	/** 数据总数 */
	private long totalNum;

	private List<T> infos ;

	public BasePageResult(long totalNum, List<T> infos) {
		this.totalNum = totalNum;
		this.infos = infos;
	}

	public int getPageNo() {
		return pageNo;
	}

	public void setPageNo(int pageNo) {
		this.pageNo = pageNo;
	}

	public int getPageMax() {
		return pageMax;
	}

	public void setPageMax(int pageMax) {
		this.pageMax = pageMax;
	}

	public long getTotalNum() {
		return totalNum;
	}

	public void setTotalNum(long totalNum) {
		this.totalNum = totalNum;
	}

	public List<T> getInfos() {
		return infos;
	}

	public void setInfos(List<T> infos) {
		this.infos = infos;
	}

}
